#include"CPolygon.h"
#include"CTriangle.h"
#include"Rectangle.h"
#include<conio.h>
int main()
{
	Rectangle rect;
	CTriangle trgl;
	CPolygon*ppoly1 = &rect;
	CPolygon*ppoly2 = &trgl;
	ppoly1->setValues(4,5);
	ppoly2->setValues(4,5);
	cout << ppoly1->area() << endl;
	cout << ppoly2->area() << endl;
	_getch();
	return 0;
}